package com.actionscriptclass.state
{
	import com.actionscriptclass.timer.TimerInvoker;
	
	public class Start implements IState 
	{
	    private var _state:SetState;
	    private var _timer:TimerInvoker;
 
		public function Start(state:SetState,timer:TimerInvoker)
		{	    
			_state=state;
			_timer=timer;
		 }
		
		public function start():void
		{
			// do nothing
		}
		
		public function stop():void 
		{ 
	        _state.setState(_state.getStop());
	        _timer.stop();
		 }
		
		public function loop(loopNumber:uint=1):void
		{
		    _state.setState(_state.getLoop());
           _timer.loop(loopNumber);
		}
		
       public function pause():void
		{
			  _state.setState(_state.getPause());
	        _timer.pause();
 
		}
	}
}